package com.edu.base.ums.AppParameterSetting.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.edu.base.ums.AppParameterSetting.mapper.AppParameterSettingMapper;
import com.edu.base.ums.AppParameterSetting.domain.AppParameterSetting;
import com.edu.base.ums.AppParameterSetting.service.IAppParameterSettingService;

/**
 * 参数配置Service业务层处理
 * 
 * @author lzs
 * @date 2021-05-31
 */
@Service
public class AppParameterSettingServiceImpl implements IAppParameterSettingService 
{
    @Autowired
    private AppParameterSettingMapper appParameterSettingMapper;

    /**
     * 查询参数配置
     * 
     * @param id 参数配置ID
     * @return 参数配置
     */
    @Override
    public AppParameterSetting selectAppParameterSettingById(Long id)
    {
        return appParameterSettingMapper.selectAppParameterSettingById(id);
    }

    /**
     * 查询参数配置列表
     * 
     * @param appParameterSetting 参数配置
     * @return 参数配置
     */
    @Override
    public List<AppParameterSetting> selectAppParameterSettingList(AppParameterSetting appParameterSetting)
    {
        return appParameterSettingMapper.selectAppParameterSettingList(appParameterSetting);
    }

    /**
     * 新增参数配置
     * 
     * @param appParameterSetting 参数配置
     * @return 结果
     */
    @Override
    public int insertAppParameterSetting(AppParameterSetting appParameterSetting)
    {
        return appParameterSettingMapper.insertAppParameterSetting(appParameterSetting);
    }

    /**
     * 修改参数配置
     * 
     * @param appParameterSetting 参数配置
     * @return 结果
     */
    @Override
    public int updateAppParameterSetting(AppParameterSetting appParameterSetting)
    {
        return appParameterSettingMapper.updateAppParameterSetting(appParameterSetting);
    }

    /**
     * 批量删除参数配置
     * 
     * @param ids 需要删除的参数配置ID
     * @return 结果
     */
    @Override
    public int deleteAppParameterSettingByIds(Long[] ids)
    {
        return appParameterSettingMapper.deleteAppParameterSettingByIds(ids);
    }

    /**
     * 删除参数配置信息
     * 
     * @param id 参数配置ID
     * @return 结果
     */
    @Override
    public int deleteAppParameterSettingById(Long id)
    {
        return appParameterSettingMapper.deleteAppParameterSettingById(id);
    }
}
